Onfocus and Onblur

Editable area focus callback and blur callback.

const E = window.wangEditor
const editor = new E('#div1')

editor.config.onblur = function (newHtml) {
    console.log('onblur', newHtml) // get latest html content
}
editor.config.onfocus = function (newHtml) {
    console.log('onfocus', newHtml) //  get latest html content
}

editor.create()
Copyright © wangEditor (2020 - present) all right reserved,powered by GitbookFile Modify: 2022-04-11 06:40:29

results matching ""

    No results matching ""